package io.renren.modules.tms.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.datasource.annotation.DataSource;
import io.renren.modules.tms.entity.Shipment;
import io.renren.modules.tms.entity.ShipmentError;
import io.renren.modules.tms.entity.ShipmentOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
* @author Administrator
* @description 针对表【T01_SHIPMENT(运单)】的数据库操作Mapper
* @createDate 2023-11-02 09:10:02
* @Entity io.renren.modules.tms.entity.Shipment
*/
@Mapper
public interface ShipmentMapper extends BaseMapper<Shipment> {

    @DataSource("tms")
    List<Shipment> selectCurrentShipmentData(String startDay, String endDay, String key);

    @DataSource("tms")
    List<Shipment> selectCurrentEventData(String startDay, String endDay, String key);

    @DataSource("tms")
    List<Shipment> selectCurrentReceiptData(String startDay, String endDay, String key);

    @DataSource("tms")
    List<ShipmentOrder> selectShipmentAndOrder(String shipmentNo, String orderNo);

    @DataSource("tms")
    List<ShipmentOrder> selectShipmentAndOrder2(String shipmentNo, String jdeNo);

    @DataSource("tms")
    List<ShipmentError> selectErrorShipment(Map<String, Object> params);
}
